Quickstart Guide on how to make Smart Swaps using Sequence’s Unreal SDK.
Get Swap Price
GetSwapPrices
to get a list of available options.
Make sure that a DEX such as UniSwap
has enough funds for your tokens.Get Swap Quote
Get Swap Quote
for the same pair to get the required
transaction data for your swap.Send Transaction
Get Swap Quote
, you construct a transaction object and first
add the Approve Data
and then the Transaction Data
to it. Make sure that the order of calling Add Raw
is the same.